<?php
echo "<h2>";
echo "Survey Settings";
echo "</h2>";

	echo form_open('user/actual_survey_edit');
	//echo anchor('user/view_certain_survey/'.$id,'Sample survey lang to');
	$index = 0;
	foreach($surveys->result() AS $test){
		//echo form_radio('survey', 'checked', FALSE);
		$survey_id = $test->survey_id;
		$id = "radEdit".$index;
		echo "<input type='radio' id=\"$id\" name='survey' value='$survey_id'>"; 
		echo "<label for =\"$id\">";
		echo " ".$test->title;
		echo "</label>";
		echo "<br/>";
		$index++;
	}	
	echo "<br/>";
	//echo form_button('edit', 'Edit me!');
	//echo anchor('user/invite_resp','Invite others');
		
	//query
	//
	if ($surveys->num_rows == 0){
	}
	else{
		echo "<input type='submit' class = 'reg' name='edit' value='View Settings'>";
	}
?>


